import permission from './modules/permission';

// 自定义指令
const directives = {
  permission,
};

// 这种写法可以批量注册指令
export default {
  install(app) {
    Object.keys(directives).forEach((key) => {
      app.directive(key, directives[key]);
    });
  },
};
